package com.zd01.model;

import java.time.LocalDate;
import java.util.List;

public class BookModel {
    private Integer id;
    private String book_name;
    private LocalDate add_time;
    // 一对多，一个书目对多个学生
    private List<StudentModel> studentModelList;

    public List<StudentModel> getStudentModelList() {
        return studentModelList;
    }

    public void setStudentModelList(List<StudentModel> studentModelList) {
        this.studentModelList = studentModelList;
    }

    @Override
    public String toString() {
        return "BookModel{" +
                "id=" + id +
                ", book_name='" + book_name + '\'' +
                ", add_time=" + add_time +
                ", studentModelList=" + studentModelList +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBook_name() {
        return book_name;
    }

    public void setBook_name(String book_name) {
        this.book_name = book_name;
    }

    public LocalDate getAdd_time() {
        return add_time;
    }

    public void setAdd_time(LocalDate add_time) {
        this.add_time = add_time;
    }

}
